<?php

use Phinx\Migration\AbstractMigration;

class ModifyContentTypeColumnTypeEnumAttributeInMessageTable extends AbstractMigration
{
    public function change()
    {
        $this->table("message")->changeColumn('content_type', 'enum', [
            'values' => "text,notice,file,audio,image,card_message",
            'default' => 'text',
            'comment' => "消息类型",
            'null' => false,
        ])->save();
    }
}
